<?php
declare (strict_types = 1);

namespace app\command;

use app\common\model\User;
use think\console\Command;
use think\console\Input;
use think\console\input\Argument;
use think\console\input\Option;
use think\console\Output;

class TaskScheduledDemo extends Command
{
    protected $taskName = 'taskScheduledDemo';

    protected function configure()
    {
        // 指令配置
        $this->setName($this->taskName)
            ->setDescription('the taskScheduledDemo command');
    }

    protected function execute(Input $input, Output $output)
    {
        $userInfo = User::where('username','admin')->find();
        qlog(json_encode($userInfo,JSON_UNESCAPED_UNICODE),$this->taskName);
    }
}
